package Lesson;

public class StringFor {
    public static void main(String[] args) {
        String s1 = "adfdsafa";

        for (int i = 0; i < s1.length(); i++) {
            System.out.println(s1.charAt(i));
        }
        System.out.println();
        char[] chr = s1.toCharArray();
        for (int i = 0; i < chr.length; i++) {
            System.out.println(chr[i]);
        }
    }
}
